package com.yanqu.road.entity.log.cross.suitang;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_suitang_sync_ability", desc = "逐鹿隋唐-同步战力日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "chasedeer_fight", isCross = true)
public class LogCrossSuiTangSyncAbility extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityId")
    private int activityId;
    @FieldTypeAnnotation(desc = "分组ID", isIndex = true, dataAttribute = "chasedeer_groid")
    private int groupId;
    @FieldTypeAnnotation(desc = "战场id", dataAttribute = "chasedeer_battle")
    private long warTypeId;
    @FieldTypeAnnotation(desc = "小组id", dataAttribute = "chasedeer_teamid")
    private long actGroupId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "同步前战力", dataAttribute = "chasedeer_fightbefore")
    private long beforeAbility;
    @FieldTypeAnnotation(desc = "同步后战力", dataAttribute = "chasedeer_fightafter")
    private long afterAbility;
    @FieldTypeAnnotation(desc = "当前基础兵力上限", dataAttribute = "chasedeer_fightmax")
    private long soldierCur;

    public LogCrossSuiTangSyncAbility(int activityId, int groupId, long warTypeId, long actGroupId, long userId, long beforeAbility, long afterAbility, long soldierCur) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.warTypeId = warTypeId;
        this.actGroupId = actGroupId;
        this.userId = userId;
        this.beforeAbility = beforeAbility;
        this.afterAbility = afterAbility;
        this.soldierCur = soldierCur;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
